package org.edu.modules.oa.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
//数据表名
@TableName("ve_oa_tongxunlu")
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class VeOaTongxunluEntity {
    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**姓名 */
    @Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    @TableField(value = "user_name")
    private String userName;

    /**性别 (0:男;1:女)*/
    @Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别(0:男;1:女)")
    @TableField(value = "sex")
    private Integer sex;

    //生日
    @Excel(name = "生日", width = 15)
    @ApiModelProperty(value = "生日")
    @TableField(value = "birth_day")
    private Date birthday;

    //职务
    @Excel(name = "职务",width = 15)
    @ApiModelProperty(value = "职务")
    @TableField(value = "job")
    private String job;

    //单位名称
    @Excel(name = "单位名称",width = 15)
    @ApiModelProperty(value = "单位名称")
    @TableField(value = "unit_name")
    private String unitName;

    //单位电话
    @Excel(name = "单位电话",width = 15)
    @ApiModelProperty(value = "单位电话")
    @TableField(value = "unit_phone")
    private String unitPhone;

    //家庭电话
    @Excel(name = "家庭电话",width = 15)
    @ApiModelProperty(value = "家庭电话")
    @TableField(value = "home_phone")
    private String homePhone;

    //手机
    @Excel(name = "手机",width = 15)
    @ApiModelProperty(value = "手机")
    @TableField(value = "phone")
    private String phone;

    //电子邮箱
    @Excel(name = "电子邮箱",width = 15)
    @ApiModelProperty(value = "电子邮箱")
    @TableField(value = "Email")
    private String email;

    //QQ号码
    @Excel(name = "QQ号码",width = 15)
    @ApiModelProperty(value = "QQ号码")
    @TableField(value = "QQ")
    private String qq;

    /**是否共享 (0:是;1:否)*/
    @Excel(name = "是否共享", width = 15)
    @ApiModelProperty(value = "是否共享 (0:是;1:否)")
    @TableField(value = "is_share")
    private Integer isShare;

    //创建人
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    //创建时间
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;


    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;


}
